package jOptionPane;

import javax.swing.JFrame;
import javax.swing.JOptionPane;

public class ShowMessages {
	public ShowMessages() {

	}

	public void ClassExist() {
		JOptionPane.showMessageDialog(null, "<html>You can not create a new class with that<br>" + "name because it already exists.</html>", "Error", JOptionPane.ERROR_MESSAGE);
	}

	public void deleteFile(Boolean bool) {
		if (bool)
			JOptionPane.showMessageDialog(null, "Delete Successful", "Information", JOptionPane.PLAIN_MESSAGE);
	}

	public void errMissingFile() {
		JOptionPane.showMessageDialog(null, "You are missing the \"Info.txt\" file", "Error", JOptionPane.ERROR_MESSAGE);
	}

	public int needToSave(JFrame frame) {
		return JOptionPane.showConfirmDialog(frame, "Would you like to save?", "Save", JOptionPane.YES_NO_OPTION);
	}

	public void saveSuccess() {
		JOptionPane.showMessageDialog(null, "Save Successful", "Information", JOptionPane.PLAIN_MESSAGE);
	}
}